package com.jobcn.repository.spider;

import com.jobcn.entity.SpiderInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by winson on 17-6-20.
 */
@Transactional
@Repository
public interface SpiderInfoRepository extends JpaRepository<SpiderInfo, Integer> {

    SpiderInfo save(SpiderInfo spiderInfo);
    Long countByTaskId(Integer TaskId);
    List<SpiderInfo> findAllByTaskId(Integer taskId);
    SpiderInfo findByInfoId(String infoId);
    List<SpiderInfo> findByMerIdOrderByUpdateTimeDesc(String merId);
}